<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" th:href="@{/static/css/layui.css}" >
    <style>
        .systemName{height:100%;float: left;color: #fff;font-size: 30px;letter-spacing: 50px;margin-left: 40%;line-height: 60px;}
    </style>
</head>
<body class="layui-layout-body">
    <script th:if="${session.tUser.URole eq '0'}">window.location.href="/index"</script>

    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <div class="layui-logo"><a th:href="@{/index}" style="color: #fff">返回首页</a></div>
            <div class="systemName">在线考试系统</div>

            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <img th:src="@{${session.tUser.UIco}}" class="layui-nav-img">
                        <span th:text="${session.tUser.UName}"></span>
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" id="update">修改信息</a></dd>
                        <dd><a href="javascript:;" id="updatePwd">修改密码</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a th:href="@{/logout}">注销</a></li>
            </ul>
        </div>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
                <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                    <li class="layui-nav-item layui-nav-itemed">
                        <a class="" href="javascript:;">用户模块</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" id="11" data-id="11" data-url="/userList" data-title="用户管理"  class="menu-tab">用户管理</a></dd>
                        </dl>
                    </li>


                    <li class="layui-nav-item">
                        <a href="javascript:;">考试模块</a>
                        <dl class="layui-nav-child">
                            <dd><a href="javascript:;" data-id="31" data-url="/questionList" data-title="题库管理" class="menu-tab">题库管理</a></dd>
                            <dd><a href="javascript:;" data-id="32" data-url="/paperList" data-title="试卷管理" class="menu-tab">试卷管理</a></dd>
                            <dd><a href="javascript:;" data-id="33" data-url="/markingList" data-title="阅卷管理" class="menu-tab">阅卷管理</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>

        <div class="layui-body">
            <!-- 内容主体区域 -->
            <div class="layui-tab layui-tab-brief" lay-filter="pageTab" lay-allowclose="true">
                <ul class="layui-tab-title"></ul>
                <div class="layui-tab-content"></div>
            </div>
        </div>
    </div>

    <script type="text/javascript" th:src="@{/static/js/jquery-3.2.1.min.js}"></script>
    <script type="text/javascript" th:src="@{/static/layui.all.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/admin/backstage.js}"></script>
    <script type="text/javascript" th:src="@{/static/js/user/index.js}"></script>
</body>
</html>